import http from '@/design/libs/request/request'

const BASE_URL = '/member/data'

export default {
  // 获取会员等级
  level: data => http.post(BASE_URL + '/level', data),
  // 获取会员来源
  channel: data => http.post(BASE_URL + '/channel', data),
  // 获取会员数据
  list: data => http.post(BASE_URL + '/list', data),
  // 获取数据
  fetchByLevel: (id) => http.post(BASE_URL + '/fetchByLevel/' + id)
}
